/* Copyright (c) 2010-2020 Vadim Surov.
 */
package com.srv.shared;

import java.io.Serializable;
import java.util.Date;

public class SetInfo implements Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = -99693733587726403L;

	private static int ID = 0;

	private int id;
	private String keyword;
	private String authorName;
	private String authorEmail;
	private String tags;
	private String firstCardHtml;
	private Date date;

	public SetInfo() {
		setId(ID++);
	}

	public SetInfo(String keyword, String authorName, String authorEmail, String tags, String firstCardHtml, Date date) {
		this.setId(ID++);
		this.setKeyword(keyword);
		this.setAuthorName(authorName);
		this.setAuthorEmail(authorEmail);
		this.setTags(tags);
		this.setFirstCardHtml(firstCardHtml);
		this.setDate(date);
	}

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}


	public String getKeyword() {
		return keyword;
	}

	public void setKeyword(String keyword) {
		this.keyword = keyword;
	}

	public String getAuthorName() {
		return authorName;
	}

	public void setAuthorName(String authorName) {
		this.authorName = authorName;
	}

	public String getAuthorEmail() {
		return authorEmail;
	}

	public void setAuthorEmail(String authorEmail) {
		this.authorEmail = authorEmail;
	}

	public String getTags() {
		return tags;
	}

	public void setTags(String tags) {
		this.tags = tags;
	}

	public String getFirstCardHtml() {
		return firstCardHtml;
	}

	public void setFirstCardHtml(String firstCardHtml) {
		this.firstCardHtml = firstCardHtml;
	}
	
	public Date getDate() {
		return date;
	}

	public void setDate(Date date) {
		this.date = date;
	}

	public String getSubject() {
		return firstCardHtml;
	}

	public void setSubject(String subject) {
		this.firstCardHtml = subject;
	}

}